home *** CD-ROM | disk | FTP | other *** search
- Installation instructions for HCOMPRESS on VMS machines
- R. L. White, 20 April 1992
-
- This directory contains DCL command files for building HCOMPRESS on a VMS
- machine (VAX) and some DCL command files that make using the programs a little
- easier.
-
- Steps for installation:
-
- (1) Copy the contents the contents of this directory into the
- source directory.
- (2) Do "@MAKE" to compile and link the programs.
- (3) Run "@HCOMPINIT" to define symbols for the compression and
- decompression programs. You can of course include this in
- your LOGIN.COM file so that the symbols get defined whenever
- you login. The programs can be installed in some public location
- by your system manager if they are going to be used by other
- users on your computer.
- (4) Instructions for using these programs are in the doc directory
- in the files hcompress.ps (Postscript file) and hcompress.man
- (plain text file).
-
- Now the programs should be ready to run. You may want to customize
- the command files for your applications. Some possible changes to
- consider:
-
- (1) There are command files to compress multiple files in FITS format
- and in hhh/hhd format. If you usually use some other formats you
- could include in the script a conversion from your format to
- one of the accepted formats.
- (2) The amount of compression is determined by the scale factor, set by
- the -s option in the programs. For astronomical images the compression
- is generally limited by the amount of noise in the images and the
- scale factor should be about 2 times the RMS noise in the image.
- For noiseless images any non-zero scale factor will give up some
- information, so the choice of scale factor will be determined by how
- much you are willing to lose. A default scale factor of 666 is used
- in the scripts -- this should probably be changed to a value appropriate
- for your typical images. If you like, you could set this default to 0
- (lossless compression.)
- (3) The MODIFY program can be used to change the format of the decompressed
- images from the default STREAMLF to FIXED record format. This may
- be necessary if programs you use to read the image require the file
- to be in a particular format. The usage is
-
- MODIFY FILENAME [ blksiz ]
-
- The default for blksiz is 512 bytes. As written by C, the file
- has the following attributes:
-
- Record format: Stream_LF
- Record attributes: Carriage return carriage control
-
- After being modified, it is:
-
- Record format: Fixed length <blksiz> byte records
- Record attributes: None
-
- MODIFY does not copy the file; instead, it simply modifies the
- RMS header of the file using a VMS utility, SYS$MODIFY.
- Unfortunately, SYS$MODIFY is unsupported (and undocumented), so
- it may fail to work with some future upgrades to the VMS
- operating system. Suggestions for a better way to make this
- file modifications (short of major changes to the hcompress
- source code) are welcome.
-